﻿<!-- 
=====================================================================
  This file is part of a Microsoft SQL Server Shared Source Application.
  Copyright (C) Microsoft Corporation.  All rights reserved.
 
THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
======================================================= 
-->

<!-- This dialog is used to set the name of the principal and mirror servers for the application. -->    
<Window x:Class="Microsoft.SqlCommunity.FaultRetry.ConfigureDialog"
        Name="ConfigureDialogWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Configure Servers" Height="334" Width="526">
    <Grid Background="{StaticResource DialogBackgroundBrush}" DataContext="{Binding AllServers, ElementName=ConfigureDialogWindow}">
        <Label Height="44" Margin="153,34,153,0" Name="TitleLabel" FontSize="24" FontFamily="Imprint MT Shadow" VerticalAlignment="Top">Configure Servers</Label>
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="68,0,0,92" Name="PrincipalComboBox" VerticalAlignment="Bottom" Width="120" IsEditable="True" 
                  ItemsSource="{Binding}" DisplayMemberPath="Principal" SelectionChanged="ComboBox_SelectionChanged"/>
        <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,0,71,92" Name="MirrorComboBox" VerticalAlignment="Bottom" Width="120" IsEditable="True" 
                  ItemsSource="{Binding}" DisplayMemberPath="Mirror" SelectionChanged="ComboBox_SelectionChanged"/>
        <Label Style="{StaticResource HeadingStyle}" HorizontalAlignment="Left" Margin="55,144,0,121" Name="PrincipalLabel" Width="151">Principal Server</Label>
        <Label Style="{StaticResource HeadingStyle}" HorizontalAlignment="Right" Margin="0,144,63,121" Name="MirrorLabel" Width="137">Mirror Server</Label>
        <Button  HorizontalAlignment="Right" Margin="0,0,153,21" Name="OKButton" VerticalAlignment="Bottom" Width="75" IsDefault="True" Click="OKButton_Click">OK</Button>
        <Button  HorizontalAlignment="Right" Margin="0,0,43,21" Name="CancelButton" VerticalAlignment="Bottom" Width="75" Click="CancelButton_Click">Cancel</Button>
        <Label Name="ErrorLabel" Height="51" Margin="27,78,27,0" VerticalAlignment="Top" BorderThickness="4" BorderBrush="Blue" Visibility="Hidden"></Label>
        <Button Name="ClearHistoryButton" Height="28" HorizontalAlignment="Left" Margin="27,0,0,21" VerticalAlignment="Bottom" Width="137" Click="ClearHistoryButton_Click">Clear History</Button>
    </Grid>
</Window>
